package dk.viauc.cmclang.intlang.ast;

import dk.viauc.cmclang.intlang.Address;

public class FunctionDeclaration
extends Declaration
{
public DeclarationList params;

public StatementList statements;
public Identifier ident;
public Type type;
public Address address;

	public FunctionDeclaration( Identifier ident,Type type, DeclarationList params,
	                            StatementList statements)
	{
		this.ident=ident;
		this.type=type;
		
		this.params = params;
		this.statements=statements;
	}
	
	public Object visit( Visitor v, Object arg )
	{
		return v.visitFunctionDeclaration( this, arg );
	}

}